const files = import.meta.globEager('./**/*.js');

const modules = {}
Object.keys(files).forEach(key => {
    modules[key.replace(/^\.\/(?:.+\/)*(.+)\.js$/, '$1')] = files[key].default;
});

export default modules
